<?php switch($content_type){
case 'p_ep': ?>
<form action="<?php echo $action_link; ?>" method="POST">
<dl>
    <dd class="cp-header"><?php echo $text_edit_profile_intro; ?></dd>
    <dd class="cp-content">
        <ul>
            <li>
                <span class="profile-entry"><?php echo $entry_icq; ?></span>
                <input class="profile-input-text" type="text" name="icq" value="<?php echo $icq; ?>" />
                <span class="inline_error"><?php echo $error_icq; ?></span>
            </li>
            <li>
                <span class="profile-entry"><?php echo $entry_aol; ?></span>
                <input class="profile-input-text" type="text" name="aol" value="<?php echo $aol; ?>" />
                <span class="inline_error"><?php echo $error_aol; ?></span>
            </li>
            <li>
                <span class="profile-entry"><?php echo $entry_wl_msn; ?></span>
                <input class="profile-input-text" type="text" name="wl_msn" value="<?php echo $wl_msn; ?>" />
                <span class="inline_error"><?php echo $error_wl_msn; ?></span>
            </li>
            <li>
                <span class="profile-entry"><?php echo $entry_yahoo; ?></span>
                <input class="profile-input-text" type="text" name="yahoo" value="<?php echo $yahoo; ?>" />
                <span class="inline_error"><?php echo $error_yahoo; ?></span>
            </li>
            <li>
                <span class="profile-entry"><?php echo $entry_jabber; ?></span>
                <input class="profile-input-text" type="text" name="jabber" value="<?php echo $jabber; ?>" />
                <span class="inline_error"><?php echo $error_jabber; ?></span>
            </li>
            <li>
                <span class="profile-entry"><?php echo $entry_location; ?></span>
                <input class="profile-input-text" type="text" name="location" value="<?php echo $location; ?>" />
            </li>
            <li>
                <span class="profile-entry"><?php echo $entry_occupation; ?></span>
                <textarea class="profile-textarea" name="occupation"><?php echo $occupation; ?></textarea>
            </li>
            <li>
                <span class="profile-entry"><?php echo $entry_interests; ?></span>
                <textarea class="profile-textarea" name="interests"><?php echo $interests; ?></textarea>
            </li>
            <li>
                <span class="profile-entry"><?php echo $entry_birthday; ?></span>
                <?php echo $entry_birthday_day; ?>
                <select class="profile-select" name="birthday_day">
                    <?php foreach($birthday_day_list as $birthday_day){ ?>
                    <?php echo $birthday_day; ?>
                    <?php } ?>
                </select>
                <?php echo $entry_birthday_month; ?>
                <select class="profile-select" name="birthday_month">
                    <?php foreach($birthday_month_list as $birthday_month){ ?>
                    <?php echo $birthday_month; ?>
                    <?php } ?>
                </select>
                <?php echo $entry_birthday_year; ?>
                <select class="profile-select" name="birthday_year">
                    <?php foreach($birthday_year_list as $birthday_year){ ?>
                    <?php echo $birthday_year; ?>
                    <?php } ?>
                </select>
                <span class="inline_error"><?php echo $error_birthday; ?></span>
            </li>
            <li class="center-up"><br /><input class="input-buttons" type="submit" name="submit" value="<?php echo $text_submit; ?>" /></li>
        </ul>
    </dd>
</dl>
</form>
<?php break; ?>
<?php case 'p_es': ?>
<form id="signature-form" action="<?php echo $action_link; ?>" method="POST">
<dl>
  <dd class="cp-header"><?php echo $text_edit_profile_intro; ?></dd>
  <dd class="cp-content">
      <?php if($error_content){ ?>
      <dl>
          <dd>
              <span class="error"><?php echo $error_content; ?></span>
          </dd>
      </dl>
      <?php } ?>
      <dl class="gray-block">
          <?php if($bbcode_enable){ ?>
          <dt id="bb_code">
              <?php foreach($bb_buttons as $bb_button){ ?>
              <?php echo $bb_button; ?>
              <?php } ?>
          </dt>
          <?php } ?>
          <dd>
              <textarea id="signature-content" name="content" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onfocus="initInsertions();"><?php echo $content; ?></textarea>
          </dd>
          <?php if($smiles_enable){ ?>
          <dd id="ubb-smile" class="signature-smile">
              <span>Smilies</span>
              <?php echo $smiles; ?>
          </dd>
          <?php } ?>
          <dd class="signature-enable-tip">
              <span>&bull;<?php echo $bbcode_enable ? $text_bbcode_enabled : $text_bbcode_disabled; ?></span>
              <span>&bull;<?php echo $bbcode_enable&&isset($bbcode_img_enable)&&$bbcode_img_enable ? $text_img_enabled : $text_img_disabled; ?></span>
              <span>&bull;<?php echo $bbcode_enable&&isset($bbcode_flash_enable)&&$bbcode_flash_enable ? $text_flash_enabled : $text_flash_disabled; ?></span>
              <span>&bull;<?php echo $bbcode_enable&&isset($bbcode_url_enable)&&$bbcode_url_enable ? $text_url_enabled : $text_url_disabled; ?></span>
              <span>&bull;<?php echo $smiles_enable ? $text_smile_enabled : $text_smile_disabled; ?></span>
          </dd>
      </dl>
      <dl>
          <dd class="center-up"><input class="input-buttons" type="submit" name="submit" value="<?php echo $text_submit; ?>" /></dd>
      </dl>
  </dd>
</dl>
</form>
<script type="text/javascript"><!--
<?php if($bbcode_enable || $smiles_enable){ ?>
  var form_name = 'signature-form';
  var text_name = 'signature-content';
<?php if($bbcode_enable){ ?>
  var bbcode = new Array();
  var bbtags = new Array(<?php echo implode(',',$bb_tags); ?>);
<?php } ?>
--></script>
<script type="text/javascript" src="catalog/view/javascript/editor.js"></script>
<?php } ?>
<?php if($bbcode_enable){ ?>
<div id="font_colour_palette" class="signature_font_colour_palette" style="display:none;">
<script type="text/javascript"><!--
   function change_palette(id){
        hideOrShow(id);
        e = document.getElementById(id);

        if (e.style.display == 'block'){
            document.getElementById('font_color').title = '<?php echo $text_font_color_close; ?>';
        }else{
            document.getElementById('font_color').title = '<?php echo $text_font_color; ?>';
        }
   }
   colorPalette('h', 15, 10);
--></script>
</div>
<?php } ?>
<?php break; ?>
<?php case 'p_ea': ?>
<form action="<?php echo $action_link; ?>" method="POST" enctype="multipart/form-data">
<dl>
    <dd class="cp-header"><?php echo $text_edit_avatar_intro; ?></dd>
    <dd class="cp-content">
        <ul>
            <li><span class="cp-entry-span"><?php echo $text_current_avatar; ?></span>
                <?php if(!empty($userInfo['user_avatar'])){ ?>
                <img src="<?php echo $userInfo['user_avatar']; ?>" />
                <?php } ?>
            </li>
            <li>
                <span class="cp-entry-span"><?php echo $entry_upoad_avatar; ?></span>
                <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $text_max_file_size; ?>" />
                <input type="file" name="avatar"/>
                <?php if(isset($error_avatar)){ ?>
                <p class="inline_error"><?php echo $error_avatar; ?></p>
                <?php } ?>
            </li>
            <li class="center-up"><input class="input-buttons" type="submit" name="submit" value="<?php echo $text_submit; ?>" /></li>
        </ul>
    </dd>
</dl>
</form>
<?php break; ?>
<?php case 'p_eas': ?>
<form action="<?php echo $action_link; ?>" method="POST">
<dl>
  <dd class="cp-header">
      <?php echo $text_edit_accout_settings_intro; ?><br />
      <a href="<?php echo $go_link; ?>"><?php echo $text_edit_you_account; ?></a>
  </dd>
  <dd class="cp-content">
      <?php if(empty($userInfo['username'])){ ?>
      <ul>
          <li><strong><?php echo $text_update_forum_name; ?></strong></li>
          <li><span class="cp-entry-span"><?php echo $text_forum_name; ?></span><input type="text" name="forumusername" /></li>
          <?php if(isset($error_forumusername)){ ?>
          <li><p class="inline_error"><?php echo $error_forumusername; ?></p></li>
          <?php } ?>
          <li><input class="input-buttons" type="submit" name="submit" value="<?php echo $text_submit; ?>" /></li>
      </ul>
      <?php }else{ ?>
      <strong><?php echo $text_forum_name; ?></strong>&nbsp;<?php echo $userInfo['username'] ?>
      <?php } ?>
  </dd>
</dl>
</form>
<?php break; ?>
<?php } ?>